#include "GMCreatedPlayer.h"
#include "GMCreatePlayer.h"
#include "GMPingConnection.h"
#include "GMReturnPing.h"
#include "GMSetVel.h"
#include "GMSyncTimer.h"
#include "GMWKeyDown.h"
#include "GMClientAccepted.h"
#include "Factory.h"

#include <iostream>

GameMessage* CreateGMCreatedPlayer()
{
	std::cout << "Created GMCreatedPlayer()" << std::endl;
	return new GMCreatedPlayer();
}
static bool a = TheGameMessageFactory::Instance()->AddType("GMCreatedPlayer", CreateGMCreatedPlayer);

GameMessage* CreateGMCreatePlayer()
{
	std::cout << "Created GMCreatePlayer()" << std::endl;
	return new GMCreatePlayer();
}
static bool b = TheGameMessageFactory::Instance()->AddType("GMCreatePlayer", CreateGMCreatePlayer);

GameMessage* CreateGMPingConnection()
{
	std::cout << "Created GMPingConnection()" << std::endl;
	return new GMPingConnection();
}
static bool c = TheGameMessageFactory::Instance()->AddType("GMPingConnection", CreateGMPingConnection);

GameMessage* CreateGMSetVel()
{
	std::cout << "Created GMSetVel()" << std::endl;
	return new GMSetVel();
}
static bool d = TheGameMessageFactory::Instance()->AddType("GMSetVel", CreateGMSetVel);

GameMessage* CreateGMReturnPing()
{
	std::cout << "Created GMGMReturnPing()" << std::endl;
	return new GMReturnPing();
}
static bool e = TheGameMessageFactory::Instance()->AddType("GMReturnPing", CreateGMReturnPing);

GameMessage* CreateGMSyncTimer()
{
	std::cout << "Created GMSyncTimer()" << std::endl;
	return new GMSyncTimer();
}
static bool f = TheGameMessageFactory::Instance()->AddType("GMSyncTimer", CreateGMSyncTimer);

GameMessage* CreateGMClientAccepted()
{
	std::cout << "Created GMClientAccepted()" << std::endl;
	return new GMClientAccepted();
}
static bool g = TheGameMessageFactory::Instance()->AddType("GMClientAccepted", CreateGMClientAccepted);

GameMessage* CreateGMWKeyDown()
{
	std::cout << "Created GMWKeyDown()" << std::endl;
	return new GMWKeyDown();
}
static bool h = TheGameMessageFactory::Instance()->AddType("GMWKeyDown", CreateGMWKeyDown);